<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function Cfb (n) {
            this.n = n
            this.init = function () {
                for(var i = 1; i <= this.n; i++ ) {
                  for(var j = 1; j <= i; j++){
                    document.write(`${j}x${i}=${i*j}&nbsp;&nbsp;&nbsp;`)
                  }
                document.write('<br>')
                }
            }
        }
        //通过var 一个c9来接收这个构建函数
        var c9 = new Cfb(9)
        c9.init()
        //直接调用这个构建行数
        new Cfb(25).init()

    </script>
</body>
</html>